package top.xxyu.resume.demo;

import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.xxyu.resume.dao.ResumeDao;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping(value = "/resume")
public class ResumeController {


    @Autowired
    private DemoService demoService;
    @Autowired
    private ResumeDao resumeDao;


    @RequestMapping(value = "/test")
    public String test() {
        Map users = demoService.find();
        String o = JSON.toJSONString(users);
        return o;
    }

    @RequestMapping(value = "/t")
    public String t() {
        String o = JSON.toJSONString(resumeDao.findAll());
        return o;
    }
}
